package com.ruoyi.business.mapper;

import java.util.List;

import com.ruoyi.bizsys.domain.RepaymentOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.bizsys.domain.CreditAccount;

/**
 * @Author: Jamnsin
 * @Date: 2019/12/6 4:13 下午
 */
@Mapper
public interface BRepaymentMapper {
	
	public Integer getBatchRepaymentCustCount();
	
	//根据借据获取还款中的记录数
	public Integer getInRepaymentCountByLoan(@Param("loanSerialNo")String loanSerialNo);
    
    public List<CreditAccount> getBatchRepaymentAccount(@Param("startLimit")int startLimit, @Param("step")int step);

	public List<CreditAccount> getBatchRepaymentAccountAll();

    List<RepaymentOrder> getToActionTypeAndLoanSerialNo(@Param("actionType")String actionType,@Param("loanSerialNo")String loanSerialNo);

	void closeByRepayemntNo(String paymentReference);

    RepaymentOrder getMaxPayTime(String loanSerialNo);

    RepaymentOrder getMaxSuccessDate(String loanSerialNo);

    List<RepaymentOrder> getNowByType(@Param("actionType")String actionType,@Param("bathNo")String bathNo,@Param("custNo")String custNo);
}
